<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::resource('house', 'House');
Route::get('house-product', 'House/getHouseByProduct');
Route::get('house-in', 'House/getHouseIn');
Route::get('house-out', 'House/getHouseOut');
Route::resource('goods', 'Goods');
Route::get('order-detail/:id', 'Order/detail');
Route::resource('order', 'Order');
Route::resource('show', 'Show');
Route::post('show-purchase', 'Show/purchase');
Route::put('show-return/:id', 'Show/showReturn');
Route::get('show-in', 'Show/getShowIn');
Route::get('show-out', 'Show/getShowOut');
Route::get('order-oid/:oid', 'Order/getByOid');
Route::put('order-confirm', 'Order/confirm');
Route::put('order-cancel', 'Order/cancel');
Route::put('order-repay-confirm', 'Order/repayConfirm');
Route::put('order-repay-cancel', 'Order/repayCancel');
Route::post('login', 'User/login');
Route::post('goods-multi', 'Goods/saveMulti');
Route::put('goods-confirm/:id', 'Goods/confirm');
Route::put('goods-cancel/:id', 'Goods/cancel');
Route::post('api-customer', 'Api/getCustomer');
Route::post('export-order', 'Export/order');
Route::post('export-show', 'Export/show');
Route::post('export-purchase', 'Export/purchase');
Route::post('export-house', 'Export/house');
Route::post('export-inout', 'Export/inout');
Route::get('serial/:id', 'Order/getSerial');
Route::put('serial/:id', 'Order/updateSerial');
Route::get('order-serial/:oid', 'Order/getOrderSerial');

